<template>
  <el-container class="Layout-container-top" style="height: 100px;">
    <el-header>Header</el-header>
  </el-container>
  <el-container class="layout-container-main">
    <el-aside width="200px" height="100px">
      <el-scrollbar>
        <el-menu :default-openeds="['1', '3']">
          <el-sub-menu index="1">
            <template #title>
              <el-icon><message /></el-icon>挂号收费
            </template>
              <el-menu-item index="1-1" >
                <template #title>
                窗口挂号
              </template>
              </el-menu-item>
              <el-menu-item index="1-2">
                <template #title>
                窗口退号
              </template>
              </el-menu-item>
              <el-menu-item index="1-3">
                <template #title>
                收费
              </template>
              </el-menu-item>
              <el-sub-menu index="1-4">
              <template #title>
                退费
              </template>
            </el-sub-menu>
            <el-sub-menu index="1-5">
              <template #title>费用记录查询</template>
            </el-sub-menu>
          </el-sub-menu>
          <el-sub-menu index="2">
            <template #title>
              <el-icon><icon-menu /></el-icon>医生工作
            </template>
              <el-menu-item index="2-1">患者查看</el-menu-item>
              <el-menu-item index="2-2">医生诊疗</el-menu-item>
              <el-menu-item index="2-3">看诊记录</el-menu-item>
          </el-sub-menu>
          <el-sub-menu index="3">
            <template #title>
              <el-icon><setting /></el-icon>检查管理
            </template>
              <el-menu-item index="3-1">检查申请</el-menu-item>
              <el-menu-item index="3-2">患者录入</el-menu-item>
              <el-menu-item index="3-3">检查录入</el-menu-item>
              <el-menu-item index="3-4">检查管理</el-menu-item>
          </el-sub-menu>
          <el-sub-menu index="4">
            <template #title>
              <el-icon><icon-menu /></el-icon>检验管理
            </template>
              <el-menu-item index="4-1">检验申请</el-menu-item>
              <el-menu-item index="4-2">患者录入</el-menu-item>
              <el-menu-item index="4-3">检验录入</el-menu-item>
              <el-menu-item index="4-4">检验管理</el-menu-item>
          </el-sub-menu>
          <el-sub-menu index="5">
            <template #title>
              <el-icon><icon-menu /></el-icon>药房管理
            </template>
              <el-menu-item index="5-1">药房发药</el-menu-item>
              <el-menu-item index="5-2">药房退药</el-menu-item>
              <el-menu-item index="5-3">药库管理</el-menu-item>
              <el-menu-item index="5-4">发烧药记录管理</el-menu-item>
          </el-sub-menu>
          <el-sub-menu index="6">
            <template #title>
              <el-icon><icon-menu /></el-icon>处置管理
            </template>
              <el-menu-item index="6-1">患者查看</el-menu-item>
              <el-menu-item index="6-2">医生诊疗</el-menu-item>
              <el-menu-item index="6-3">看诊记录</el-menu-item>
              <el-menu-item index="6-4">处置管理</el-menu-item>
          </el-sub-menu>
        </el-menu>
      </el-scrollbar>
    </el-aside>

    <el-container>
      <el-header style="text-align: right; font-size: 12px;height: 100px;">
        <div class="toolbar">
          <el-dropdown>
            <el-icon style="margin-right: 8px; margin-top: 1px"
              ><setting
            /></el-icon>
            <template #dropdown>
              <el-dropdown-menu>
                <el-dropdown-item>View</el-dropdown-item>
                <el-dropdown-item>Add</el-dropdown-item>
                <el-dropdown-item>Delete</el-dropdown-item>
              </el-dropdown-menu>
            </template>
          </el-dropdown>
          <span>Tom</span>
        </div>
      </el-header>

      <el-main>
        <el-scrollbar>
          <el-table :data="tableData">
            <el-table-column prop="date" label="Date" width="140" />
            <el-table-column prop="name" label="Name" width="120" />
            <el-table-column prop="address" label="Address" />
          </el-table>
        </el-scrollbar>
      </el-main>
    </el-container>
  </el-container>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { Menu as IconMenu, Message, Setting } from '@element-plus/icons-vue'



const item = {
  
}


//const tableData = ref(Array.from({ length: 20 }).fill(item))
</script>

<style scoped>
.layout-container-main .el-header {
  position: relative;
  background-color: var(--el-color-primary-light-7);
  color: var(--el-text-color-primary);
}
.layout-container-main .el-aside {
  color: var(--el-text-color-primary);
  background: var(--el-color-primary-light-8);
}
.layout-container-main .el-menu {
  border-right: none;
}
.layout-container-main .el-main {
  padding: 0;
}
.layout-container-main .toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  right: 20px;
}
.layout-container-main{
  height: 100vh;
}

</style>
